﻿<?php
require_once("class/mysql.class.php");
	
	$sqlQ = "SELECT * FROM `st_article` ORDER BY date_add ASC ";

	$obj = new Mysql ();
	$resultQ = mysql_query($sqlQ);
	$array= array();
	$i=0;
	
	while ($rowQ=mysql_fetch_object($resultQ))	
	{
		if($rowQ->Quantite<=$rowQ->Qte_min)	
		{
			$array[$i]=$rowQ->id_article;
			$i++;
		}
	}
	//print_r($array);

?>